function Data(users, projects, initialDate, endDate, summ1, summ2, summ3) {
    this.projects = projects
    this.users = users
    this.initialDate = initialDate
    this.endDate = endDate
    this.summ1 = summ1
    this.summ2 = summ2
    this.summ3 = summ3
}


function select_form(value, data) {
    var s
    if (value == 1) {
        s = "<form action='' name='form1' id='form1' method='get'>"
        s += "Users " + data.users
        s += " InitialDate " + data.initialDate
        s += " EndDate " + data.endDate
        s += " <input type='submit' name='UserHours' value='Ok' id='Financier1'>" + " Results "
        s += "<input type='text' value='" + data.summ1 + "' size='10'>" + "</form> <br> <br>"
        document.getElementById('form').innerHTML = s
    }
    if (value == 2) {
        s = "<form action='' name='form2' id='form2' method='get'>"
        s += "Users " + data.users
        s += "Projects " + data.projects
        s += " InitialDate " + data.initialDate
        s += " EndDate " + data.endDate
        s += " <input type='submit' name='UserProjectHours' value='Ok' id='Financier2'>" + " Results "
        s += "<input type='text' value='" + data.summ2 + "' size='10'>" + "</form> <br> <br>"
        document.getElementById('form').innerHTML = s
    }
    if (value == 3) {
        s = "<form action='' name='form3' id='form3' method='get'>"
        s += "Projects " + data.projects
        s += " InitialDate " + data.initialDate
        s += " EndDate " + data.endDate
        s += " <input type='submit' name='ProjectHours' value='Ok' id='Financier3'>" + " Results "
        s += "<input type='text' value='" + data.summ3 + "' size='10'>" + "</form> <br> <br>"
        document.getElementById('form').innerHTML = s
    }
    if (value == 0) {
        document.getElementById('form').innerHTML = ''
    }
}